package com.ruoyi.normal.service.impl;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.normal.domain.AppuserAchievementPrize;
import com.ruoyi.normal.mapper.AppuserAchievementPrizeMapper;
import com.ruoyi.normal.service.IAppuserAchievementPrizeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 普通用户成就奖品Service业务层处理
 *
 * @author ruoyi
 * @date 2024-01-14
 */
@Service
public class AppuserAchievementPrizeServiceImpl extends ServiceImpl<AppuserAchievementPrizeMapper,AppuserAchievementPrize> implements IAppuserAchievementPrizeService
{
    @Autowired
    private AppuserAchievementPrizeMapper appuserAchievementPrizeMapper;

    /**
     * 查询普通用户成就奖品
     *
     * @param id 普通用户成就奖品主键
     * @return 普通用户成就奖品
     */
    @Override
    public AppuserAchievementPrize selectAppuserAchievementPrizeById(String id)
    {
        return appuserAchievementPrizeMapper.selectAppuserAchievementPrizeById(id);
    }

    /**
     * 查询普通用户成就奖品列表
     *
     * @param appuserAchievementPrize 普通用户成就奖品
     * @return 普通用户成就奖品
     */
    @Override
    public List<AppuserAchievementPrize> selectAppuserAchievementPrizeList(AppuserAchievementPrize appuserAchievementPrize)
    {
        return appuserAchievementPrizeMapper.selectAppuserAchievementPrizeList(appuserAchievementPrize);
    }

    /**
     * 新增普通用户成就奖品
     *
     * @param appuserAchievementPrize 普通用户成就奖品
     * @return 结果
     */
    @Override
    public int insertAppuserAchievementPrize(AppuserAchievementPrize appuserAchievementPrize)
    {
        return appuserAchievementPrizeMapper.insertAppuserAchievementPrize(appuserAchievementPrize);
    }

    /**
     * 修改普通用户成就奖品
     *
     * @param appuserAchievementPrize 普通用户成就奖品
     * @return 结果
     */
    @Override
    public int updateAppuserAchievementPrize(AppuserAchievementPrize appuserAchievementPrize)
    {
        return appuserAchievementPrizeMapper.updateAppuserAchievementPrize(appuserAchievementPrize);
    }

    /**
     * 批量删除普通用户成就奖品
     *
     * @param ids 需要删除的普通用户成就奖品主键
     * @return 结果
     */
    @Override
    public int deleteAppuserAchievementPrizeByIds(String[] ids)
    {
        return appuserAchievementPrizeMapper.deleteAppuserAchievementPrizeByIds(ids);
    }

    /**
     * 删除普通用户成就奖品信息
     *
     * @param id 普通用户成就奖品主键
     * @return 结果
     */
    @Override
    public int deleteAppuserAchievementPrizeById(String id)
    {
        return appuserAchievementPrizeMapper.deleteAppuserAchievementPrizeById(id);
    }
}
